#include	<FW/System/Win32/Mutex.h>

namespace System
{

	Mutex::Mutex ( void )
	{
		InitializeCriticalSection ( & mHandle );
	}

	Mutex::~Mutex ( void )
	{
		DeleteCriticalSection ( & mHandle );
	}

	void Mutex::Lock ( void )
	{
		EnterCriticalSection ( & mHandle );
	}

	void Mutex::Unlock ( void )
	{
		LeaveCriticalSection ( & mHandle );
	}

}
